package com.zut.service.Impl;

import com.zut.dao.RepayDao;
import com.zut.pojo.Repay;
import com.zut.service.RepayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RepayServiceImpl implements RepayService {

    @Autowired
    private RepayDao repayDao;
    // 发布项目的同时，添加汇报设置
    @Override
    public Integer addRepay(Repay repay) {
        return repayDao.addRepay(repay);
    }

    // 根据产品id 查询回报
    @Override
    public Repay selectRepayByProductId(Integer id) {
        return repayDao.selectRepayByProductId(id);
    }
}
